﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000201 RID: 513
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueBuffEnhanceList : IMessage<ChessRogueBuffEnhanceList>, IMessage, IEquatable<ChessRogueBuffEnhanceList>, IDeepCloneable<ChessRogueBuffEnhanceList>, IBufferMessage
	{
		// Token: 0x170006BB RID: 1723
		// (get) Token: 0x06001715 RID: 5909 RVA: 0x00041BC3 File Offset: 0x0003FDC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueBuffEnhanceList> Parser
		{
			get
			{
				return ChessRogueBuffEnhanceList._parser;
			}
		}

		// Token: 0x170006BC RID: 1724
		// (get) Token: 0x06001716 RID: 5910 RVA: 0x00041BCA File Offset: 0x0003FDCA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueBuffEnhanceListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170006BD RID: 1725
		// (get) Token: 0x06001717 RID: 5911 RVA: 0x00041BDC File Offset: 0x0003FDDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueBuffEnhanceList.Descriptor;
			}
		}

		// Token: 0x06001718 RID: 5912 RVA: 0x00041BE3 File Offset: 0x0003FDE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffEnhanceList()
		{
		}

		// Token: 0x06001719 RID: 5913 RVA: 0x00041BF6 File Offset: 0x0003FDF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffEnhanceList(ChessRogueBuffEnhanceList other) : this()
		{
			this.enhanceInfoList_ = other.enhanceInfoList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600171A RID: 5914 RVA: 0x00041C20 File Offset: 0x0003FE20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffEnhanceList Clone()
		{
			return new ChessRogueBuffEnhanceList(this);
		}

		// Token: 0x170006BE RID: 1726
		// (get) Token: 0x0600171B RID: 5915 RVA: 0x00041C28 File Offset: 0x0003FE28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChessRogueBuffEnhanceInfo> EnhanceInfoList
		{
			get
			{
				return this.enhanceInfoList_;
			}
		}

		// Token: 0x0600171C RID: 5916 RVA: 0x00041C30 File Offset: 0x0003FE30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueBuffEnhanceList);
		}

		// Token: 0x0600171D RID: 5917 RVA: 0x00041C3E File Offset: 0x0003FE3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueBuffEnhanceList other)
		{
			return other != null && (other == this || (this.enhanceInfoList_.Equals(other.enhanceInfoList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600171E RID: 5918 RVA: 0x00041C74 File Offset: 0x0003FE74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.enhanceInfoList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600171F RID: 5919 RVA: 0x00041CA8 File Offset: 0x0003FEA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001720 RID: 5920 RVA: 0x00041CB0 File Offset: 0x0003FEB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001721 RID: 5921 RVA: 0x00041CB9 File Offset: 0x0003FEB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.enhanceInfoList_.WriteTo(ref output, ChessRogueBuffEnhanceList._repeated_enhanceInfoList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001722 RID: 5922 RVA: 0x00041CE0 File Offset: 0x0003FEE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.enhanceInfoList_.CalculateSize(ChessRogueBuffEnhanceList._repeated_enhanceInfoList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001723 RID: 5923 RVA: 0x00041D19 File Offset: 0x0003FF19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueBuffEnhanceList other)
		{
			if (other == null)
			{
				return;
			}
			this.enhanceInfoList_.Add(other.enhanceInfoList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001724 RID: 5924 RVA: 0x00041D47 File Offset: 0x0003FF47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001725 RID: 5925 RVA: 0x00041D50 File Offset: 0x0003FF50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 122U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.enhanceInfoList_.AddEntriesFrom(ref input, ChessRogueBuffEnhanceList._repeated_enhanceInfoList_codec);
				}
			}
		}

		// Token: 0x0400098D RID: 2445
		private static readonly MessageParser<ChessRogueBuffEnhanceList> _parser = new MessageParser<ChessRogueBuffEnhanceList>(() => new ChessRogueBuffEnhanceList());

		// Token: 0x0400098E RID: 2446
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400098F RID: 2447
		public const int EnhanceInfoListFieldNumber = 15;

		// Token: 0x04000990 RID: 2448
		private static readonly FieldCodec<ChessRogueBuffEnhanceInfo> _repeated_enhanceInfoList_codec = FieldCodec.ForMessage<ChessRogueBuffEnhanceInfo>(122U, ChessRogueBuffEnhanceInfo.Parser);

		// Token: 0x04000991 RID: 2449
		private readonly RepeatedField<ChessRogueBuffEnhanceInfo> enhanceInfoList_ = new RepeatedField<ChessRogueBuffEnhanceInfo>();
	}
}
